Skip to content

Option to specify single plugin test (or single test file) with logging - #73

Merged
kvfairchild merged 4 commits into
mainfrom
kvf/run-one-test
Sep 29, 2022
Merged

kvfairchild merged 4 commits into
mainfrom
kvf/run-one-test

Conversation

@kvfairchild

Copy link
Copy Markdown
Contributor

Adds option to specify either a single plugin test.py and run all tests included or a singular test.

Usage examples (this PR adds 1 & 2)

  1. Run all tests for futrell2018 benchmark:
    python brainscore_language/plugin_management/test_plugins.py brainscore_language/benchmarks/futrell2018/test.py

  2. Run only tests with names matching specified pattern (test_exact):
    python brainscore_language/plugin_management/test_plugins.py brainscore_language/benchmarks/futrell2018/test.py --test=test_exact

  3. Run all tests for all plugins:
    python brainscore_language/plugin_management/test_plugins.py

@mschrimpf mschrimpf left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Looks good, but can you add the usage examples from the PR description to the docs?

@kvfairchild

Copy link
Copy Markdown
Contributor Author

@gretatuckute @aalok-sathe does this address your use case?

@gretatuckute gretatuckute left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Yes, it does. thank you Katherine!

@kvfairchild
kvfairchild merged commit a02a21c into main Sep 29, 2022
@kvfairchild
kvfairchild deleted the kvf/run-one-test branch October 14, 2022 18:07
mschrimpf pushed a commit that referenced this pull request Oct 26, 2022
…ng (#73)

* option to run single test

* typo

* cleanup

* documentation

Co-authored-by: Katherine Fairchild <[email protected]>
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