Skip to content

Fixes test with log file and adds skip option #75

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

Closed
wants to merge 25 commits into from
Closed

Fixes test with log file and adds skip option #75

wants to merge 25 commits into from

Conversation

Cyb3r-Jak3
Copy link
Contributor

@Cyb3r-Jak3 Cyb3r-Jak3 commented Oct 1, 2020

Biggest Changes

  • Fixes the test with log file and separate normal test from config test
  • Adds Skip file option. Similar to the blacklist option.

@Cyb3r-Jak3
Copy link
Contributor Author

Cyb3r-Jak3 commented Oct 2, 2020

Pypy implementation in Github Actions does not appear to be working. See actions/runner-images#1716
Resolved

@Cyb3r-Jak3 Cyb3r-Jak3 changed the title Fixes test with log file and adds Github Action testing Fixes test with log file Oct 3, 2020
@Cyb3r-Jak3
Copy link
Contributor Author

@svenkreiss Would you be open to switching to GitHub Actions for the CI?

I have been messing around with it a bit and if switching there is a lot more tests that can be run such as different os and java versions. Here is an example of what it would look like: https://github.com/Cyb3r-Jak3/html5validator/actions/runs/285811420.
That is testing the same python versions, with java 8-13 and ubuntu 16, 18, and 20, mac-os and windows. Allows for seeing if there are issues with different java version or OS.

- Adds the ability to skip specific files. 
   - Adds tests for skip
- Moves tests to a separate directory to decrease download size.
@Cyb3r-Jak3 Cyb3r-Jak3 changed the title Fixes test with log file Fixes test with log file and adds skip option Nov 28, 2020
@Cyb3r-Jak3
Copy link
Contributor Author

@svenkreiss I added a new option --skip to allow users to skip certain files. This was requested in the GitHub action. Cyb3r-Jak3/html5validator-action#12.

Was not sure if you want a separate PR for it.

@khusika
Copy link

khusika commented Mar 24, 2021

Is there any plan to merge this?

@svenkreiss
Copy link
Owner

Thanks @Cyb3r-Jak3 for the PR and @khusika for the reminder.

The moved tests are a blocker for me. I want to be able to run these tests without the full source tree.

I am also against a new command line argument but it does make a lot of sense to extend --blacklist to also remove individual files and not only directories.

@Cyb3r-Jak3
Copy link
Contributor Author

@svenkreiss
Tests are back to where they were. Also, make it so the blacklist command does files and directories.

You are definitely going to want squash merge this as the config tests don't work on Windows due to the path.

Copy link
Owner

@svenkreiss svenkreiss left a comment

Choose a reason for hiding this comment

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

Thanks for fixing those.

The diff is still huge and it is not clear to me why. Can you revert so that the diff becomes readable?

I have added some further requests to revert changes that I think were from your previous changes and are now unnecessary. Maybe I am wrong about some of them, so please reply with a short comment why those are necessary now. Thanks!

@@ -18,14 +18,13 @@
setup(
name='html5validator',
version=__version__,
packages=['html5validator', 'html5validator.tests', 'vnujar'],
Copy link
Owner

Choose a reason for hiding this comment

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

revert

license='MIT',
description='Validate HTML5 files.',
long_description=open('README.rst').read(),
author='Sven Kreiss',
author_email='me@svenkreiss.com',
url='https://github.com/svenkreiss/html5validator',

Copy link
Owner

Choose a reason for hiding this comment

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

revert


if skip_invisible:
# filter out directory names starting with '.'
invisible_dirs = [d for d in dirnames if d[0] == '.']
Copy link
Owner

Choose a reason for hiding this comment

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

revert

@@ -1,173 +1,187 @@
# -*- coding: utf-8 -*-
Copy link
Owner

Choose a reason for hiding this comment

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

Why is this entire file different?

Same for all the files in tests/config_files?

@@ -1,3 +1,2 @@
include README.rst LICENSE vnujar/vnu.jar
recursive-include tests *
recursive-exclude tests *.pyc .DS_Store
prune html5validator/tests
Copy link
Owner

Choose a reason for hiding this comment

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

remove

@Cyb3r-Jak3
Copy link
Contributor Author

Looking through everything, I agree this got incredibly messy. I am going to close out this PR and start fresh.

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