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

Extract storeAssertDiff from Dumper::dumpException #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

trejjam
Copy link
Contributor

@trejjam trejjam commented Jan 2, 2018

  • bug fix? no
  • new feature? yes
  • BC break? no

This refactor Dumper::dumpException in the way that part maintaining storing Assert diff is callable from other test libraries.

@trejjam
Copy link
Contributor Author

trejjam commented May 30, 2018

Hi @milo,
are there any opinions on this?

@milo
Copy link
Member

milo commented May 31, 2018

I'll check it during next week.

@milo
Copy link
Member

milo commented May 31, 2018

Btw what the purpose is?

@trejjam
Copy link
Contributor Author

trejjam commented May 31, 2018

I use it with mango tester to store a diff.

@dg dg force-pushed the master branch 2 times, most recently from b9711f5 to 3f273cf Compare June 7, 2018 11:24
@trejjam trejjam force-pushed the feature/dump-exception branch from 5a06f31 to 29c9186 Compare June 8, 2018 16:19
@milo
Copy link
Member

milo commented Jun 13, 2018

Thanks for rebase!

Your storeAssertDiff() does two things. Translates exception into message and creates dump files (arg reference is not nice public API). Do you need both?

I know mango flavoured Tester, but not its source code in detail. Could you elaborate more in detail why do you need extract this functionality? From your description it looks like you only need to remove @internal from saveOutput() method.

@trejjam
Copy link
Contributor Author

trejjam commented Jun 13, 2018

The storing part is what I would like to port into Mango tester.

It uses own TestCase, where the only message about assert fault is reported, not simple fault then require xDebug or the other inspection method.

What about removing @internal or simplifying PR to move only logic in https://github.com/nette/tester/blob/master/src/Framework/Dumper.php#L264 and make it publicly callable?

You are right that storeAssertDiff API is not good enough.

@milo milo force-pushed the master branch 2 times, most recently from eaaeb7b to 7184606 Compare February 21, 2019 06:47
@dg dg force-pushed the master branch 2 times, most recently from ee525b7 to 6ca248e Compare February 27, 2019 13:34
@dg dg force-pushed the master branch 7 times, most recently from 37f5151 to c3bd1b2 Compare November 19, 2019 13:19
@dg dg force-pushed the master branch 2 times, most recently from 7362057 to a2312d9 Compare January 21, 2020 18:47
@dg dg force-pushed the master branch 2 times, most recently from 0df3c7e to 062041b Compare October 13, 2022 01:23
@dg dg force-pushed the master branch 10 times, most recently from 3267365 to 9d28a53 Compare February 6, 2023 15:42
@dg dg force-pushed the master branch 3 times, most recently from dddb52b to 78555c7 Compare March 2, 2023 02:15
@dg dg force-pushed the master branch 3 times, most recently from 95674fc to c5eff68 Compare December 5, 2023 17:32
@dg dg force-pushed the master branch 6 times, most recently from cc8395d to 8b22550 Compare June 18, 2024 20:27
@dg dg force-pushed the master branch 2 times, most recently from 2fee261 to c118637 Compare October 23, 2024 23:57
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.

2 participants