use pytest as the execution engine for all tests#951
Conversation
PR Reviewer Guide 🔍(Review updated until commit 1c9e886)Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Latest suggestions up to 1c9e886
Previous suggestionsSuggestions up to commit b507770
|
restore restore this too Revert "first pass" This reverts commit b507770b2c79cc948b33222d8877fb784bfe108a.
2b2fd42 to
db472bb
Compare
|
Persistent review updated to latest commit 1c9e886 |
| - name: Install dependencies (CLI) | ||
| run: | | ||
| uv sync | ||
| uv add timeout_decorator |
There was a problem hiding this comment.
add to toml and update lock file?
There was a problem hiding this comment.
oh my bad, we're removing this from the dependencies, do we need the workflow file then?
There was a problem hiding this comment.
yeah why do we need to install this package here?
There was a problem hiding this comment.
because we install codeflash from pypi / main which still doesn't have the removed dep yet, once we do the release / merge I'll remove it
|
|
||
| test_class_header = "class TestPigLatin(unittest.TestCase):" | ||
| test_decorator = " @timeout_decorator.timeout(15)" if platform.system() != "Windows" else "" | ||
| test_decorator = "" # pytest-timeout handles timeouts now, not timeout_decorator |
There was a problem hiding this comment.
i would ask you to double check this assumption. i remember there were problems earlier. just confirm this point
|
approving this, although this is a big change and we should be careful with its rollout. especially about deciding when we want to deploy the internal change |
PR Type
Enhancement, Tests, Bug fix
Description
Standardize on pytest for all tests
Remove unittest-specific timeout/decorator logic
Simplify runners and parsers for pytest-only flow
Add robust test file path resolution
Diagram Walkthrough
File Walkthrough
4 files
Remove unittest timeout decorators and importsUnify benchmarking/profiling to pytest; simplify loopsAdd robust pytest classname-to-file resolver; unify timeout parsingConsolidate runners to pytest for all frameworks; remove unittestrunner3 files
Add tests for resolving pytest unittest class pathsUpdate expectations to remove timeout_decorator usageAdjust env and invocation for pytest-based unittest run1 files
Add timeout_decorator install for CI compatibility1 files
Drop unittest and timeout-decorator deps; keep pytest-timeout