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

Added output to file functionality #5

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added output to file functionality #5

wants to merge 2 commits into from

Conversation

w13b3
Copy link

@w13b3 w13b3 commented Aug 9, 2021

Hey, so i needed functionality to output test results to a file, so i added it.
Maybe it's an useful addition to the Lunity.

Also updated the generated HTML
Now it scales with the browser size and the <style> tag in dictates the style for the rest of the elements.
There is no need to add style's directly to the elements, which also saves space.

Added option: outFile.
Usage: `outFile='file.html'` or `outFile='/path/to/file.log'`
If file exists date_time is added to the filename.
If outFile is given, file is made and `print` is re-assigned for output.
After all the tests, `print` is reset and the file is closed.
Added `<style>` tag.
Better placement of tests passes and successful assertions text.
Font resizes with screen size (`1.5vw`).
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.

None yet

1 participant