Skip to content

Commit

Permalink
comments
Browse files Browse the repository at this point in the history
  • Loading branch information
szabgab committed Nov 7, 2024
1 parent f4256d2 commit bb25ba5
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 4 deletions.
2 changes: 1 addition & 1 deletion sites/en/pages/subtest.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
=status show
=books testing
=author szabgab
=comments_disqus_enable 1
=comments_disqus_enable 0

=abstract start

Expand Down
2 changes: 1 addition & 1 deletion sites/en/pages/test-for-expected-warnings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
=books testing
=author szabgab
=archive 1
=comments_disqus_enable 1
=comments_disqus_enable 0

=abstract start

Expand Down
6 changes: 5 additions & 1 deletion sites/en/pages/testing-for-no-warnings.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=status show
=author szabgab
=archive 1
=comments_disqus_enable 1
=comments_disqus_enable 0

=abstract start

Expand Down Expand Up @@ -213,3 +213,7 @@ Result: FAIL
Feel free to use either of these solutions. I personally still prefer the use of plans, but the <hl>done_testing</hl>
also has its place and the <hl>Warn::FailWarnings</hl> module has nicer reports.

<h2>Comments</h2>

Another advanced warning usage is custom categories definition. Then you could enable a fine-grained exception system based on your requirements and make warn statements FATAL in your test suites.
https://perldoc.perl.org/warnings#Reporting-Warnings-from-a-Module
16 changes: 15 additions & 1 deletion sites/en/pages/virtualenv-in-perl.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
=status show
=author szabgab
=archive 1
=comments_disqus_enable 1
=comments_disqus_enable 0

=abstract start

Expand Down Expand Up @@ -68,3 +68,17 @@ export PATH=venv/bin/:$PATH
</code>


<h2>Comments</h2>

Also check out carton... A much more robust way of doing this.

<hr>

Does not work: I exactly followed your instructions.

$ cpanm -l venv/ --installdeps .
--> Working on .
Configuring /Users/tperiasa/work/perl-dev ... OK
find_module_by_name() requires a package name at /usr/local/bin/cpanm line 35.


0 comments on commit bb25ba5

Please sign in to comment.