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

Feature: Pretty messages #3

Open
Dzejkop opened this issue Feb 20, 2020 · 0 comments
Open

Feature: Pretty messages #3

Dzejkop opened this issue Feb 20, 2020 · 0 comments
Labels
enhancement New feature or request
Projects

Comments

@Dzejkop
Copy link
Owner

Dzejkop commented Feb 20, 2020

Catch does this

Scenario: vectors can be sized and resized
     Given: A vector with some items
      When: more capacity is reserved
      Then: the capacity changes but not the size

catchr will show you the path to the test, but paths cannot contain any special characters. It'd be nice to be able to do something like:

section "Very descriptive comment" {
	case "-- special chars ???" {
		assert!(false, catchr_msg!());
	}
}

and for it to output:

running 1 test
test very_descriptive_comment::special_chars ... FAILED

failures:

---- very_descriptive_comment::special_chars stdout ----
thread 'very_descriptive_comment::special_chars' panicked at '
Section: Very descriptive comment
	Case: -- special chars ???
', src/lib.rs:4:9

or something simmilar

@Dzejkop Dzejkop added the enhancement New feature or request label Feb 20, 2020
@Dzejkop Dzejkop added this to To do in Catchr Feb 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
Catchr
  
To do
Development

No branches or pull requests

1 participant