Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tests: Use ARGS to choose which tests to run #1108

Merged
merged 3 commits into from
Apr 7, 2024

Conversation

cmcaine
Copy link
Contributor

@cmcaine cmcaine commented Sep 7, 2023

ARGS can be specified like this:

Pkg.test("HTTP"; test_args=`ascii.jl parser.jl`)
# or
Pkg.test("HTTP"; test_args=["ascii.jl", "parser.jl"])

This is useful because the whole test suite takes ages to run.

ARGS can be specified like this:

	Pkg.test("HTTP"; test_args=`ascii.jl parser.jl`)
	# or
	Pkg.test("HTTP"; test_args=["ascii.jl", "parser.jl"])

This is useful because the whole test suite takes ages to run.
@codecov-commenter
Copy link

codecov-commenter commented Sep 7, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 82.78%. Comparing base (8f35185) to head (2431a13).
Report is 28 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1108      +/-   ##
==========================================
+ Coverage   82.34%   82.78%   +0.43%     
==========================================
  Files          32       32              
  Lines        3042     3079      +37     
==========================================
+ Hits         2505     2549      +44     
+ Misses        537      530       -7     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@cmcaine
Copy link
Contributor Author

cmcaine commented Apr 4, 2024

Bump.

@@ -1,40 +1,40 @@
using Test, HTTP, JSON

const dir = joinpath(dirname(pathof(HTTP)), "..", "test")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we keep this please? I don't mind moving it down to the for loop, but it's really handy because I often have to step through the test files one by one and @__DIR__ doesnt' work when run at the REPL.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure!

@quinnj quinnj merged commit efd74ea into JuliaWeb:master Apr 7, 2024
7 of 10 checks passed
@cmcaine cmcaine deleted the test-args branch April 7, 2024 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants