-
Notifications
You must be signed in to change notification settings - Fork 676
Add ability to get skipped tests when using getTestList for static analysis #6398
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
Conversation
Hi @flora8984461 Also, I fixed the broken links on the Contribution guide page. |
It seems that the PR is not finished yet. it('Hooks in test file', function () {
const expectedStructure = [
[
new Fixture('fixture1', 0, 23, new Loc(1, 0, 1, 23), {},
[
new Test('fixture1test1', 26, 111, new Loc(3, 0, 9, 2), {}),
]
),
...
],
];
return testJSFilesParser('./data/test-suites/fixture-and-test-hooks', expectedStructure); And alsoI had a look at the testfile: fixture `fixture1`.skip;
test.before(async t => {
})
('fixture1test1', async t => {
}).after(async t => {
}); In the test file, fixture1 is skipped. However, in the test it is not skipped, and the test passes. This means that the test is incorrect. But the test passes - this means that the parser does not work correctly with this usage scenario. Please take a look at other tests. There may be similar cases as well. We can merge this PR only if we are sure that all cases are covered. |
Thank you so much for your review. I will update my PR soon. |
6aff4fe
to
74cd5ac
Compare
Still have some issue with typescript's get-test-list, working on it... |
49fa13f
to
6c44061
Compare
Hi @AlexKamaev , thank you so much for helping review, I found some miss. I made the fix and added several new test cases in the testfile in fixture-and-test-hooks. Would you mind helping review again? I wonder if there is any better way to do it and if there are any other cases I can consider testing. Thanks! |
@flora8984461 fixture
.beforeEach(async t => {})
.before(async t => {})
('fixture5');
test
.skip // <-------------------------------------
.before(async t => {})
.after(async t => {})
`fixture5test1` I would like to see one special method that will detect if the |
Thanks for your feedback. I think I might need more time to make it a better way. I prefer one special method that will detect if the skip is applied too. Let me convert it to draft and work on it more. |
78b248e
to
cf477e1
Compare
cf477e1
to
ea4835c
Compare
LGTM but should be rebased and merged only after the patch release. |
Thank you so much for your time and for helping me refractory. I will do the rebase, or do you prefer doing it? And when is the patch release? |
@flora8984461 I do not have enough permissions to do rebase in your branch. If you grant me permissions, I can do the rebase, or you can do it yourself. At present, we cannot give you precise estimation about the next release date. |
d52b928
to
0b06b89
Compare
@AlexKamaev Thanks, sorry I forgot about the access. I did a rebase and sent you an invite as a collaborator on my forked branch (I think that can grant rebase access?) just in case there will be more need updates / rebase. |
Purpose
Describe the problem you want to address or the feature you want to implement.
I have opened an issue #6238, and I was suggested to open a PR. The purpose is to add property of "isSkipped" when using getTypeScriptTestList / getTypeScriptTestListFromCode and getTestList / getTestListFromCode when I just want to do a static analysis without actually running the tests.
Approach
Describe how your changes address the issue or implement the desired functionality in as much detail as possible.
References
Provide a link to the existing issue(s), if any.
#6238
Pre-Merge TODO
I think the test "src/compiler/test-file/test-file-parser-base.js" includes the test I need, and I made the required updates.
I have run the following tests on my local,
And I found the link on Contributing Guide https://github.com/DevExpress/testcafe/blob/master/docs/articles/documentation/reference/command-line-interface.md#file-pathglob-pattern and https://github.com/DevExpress/testcafe/blob/master/docs/articles/documentation/reference/command-line-interface.md cannot be reached now.
I am opening PR for review to double-check if I am missing anything and looking for feedback on my approach. Thank you so much!
marking this since the tests including my changes have passed.
Hi @AlexSkorkin @AlexKamaev @miherlosev Would you mind helping review and approve running workflows? Thanks! I cannot add reviewers.