Skip to content
Snippets Groups Projects
Commit b6b0932c authored by Muxi Yan's avatar Muxi Yan
Browse files

Add fixture description and TODO for test name inferral from test case method name

parent bff5cbf6
No related branches found
No related tags found
No related merge requests found
...@@ -31,6 +31,18 @@ ...@@ -31,6 +31,18 @@
* *
*/ */
/*
* This test file is derived from fixture h2_ssl.c in core end2end test
* (test/core/end2end/fixture/h2_ssl.c). The structure of the fixture is
* preserved as much as possible
*
* This fixture creates a server full stack using chttp2 and a client
* full stack using Cronet. End-to-end tests are run against this
* configuration
*
*/
#import <XCTest/XCTest.h> #import <XCTest/XCTest.h>
#include "test/core/end2end/end2end_tests.h" #include "test/core/end2end/end2end_tests.h"
...@@ -166,6 +178,7 @@ static grpc_end2end_test_config configs[] = { ...@@ -166,6 +178,7 @@ static grpc_end2end_test_config configs[] = {
char *roots_filename;
@interface CoreCronetEnd2EndTests : XCTestCase @interface CoreCronetEnd2EndTests : XCTestCase
...@@ -173,7 +186,6 @@ static grpc_end2end_test_config configs[] = { ...@@ -173,7 +186,6 @@ static grpc_end2end_test_config configs[] = {
@implementation CoreCronetEnd2EndTests @implementation CoreCronetEnd2EndTests
char *roots_filename;
// The setUp() function is run before the test cases run and only run once // The setUp() function is run before the test cases run and only run once
+ (void)setUp { + (void)setUp {
...@@ -217,6 +229,8 @@ char *roots_filename; ...@@ -217,6 +229,8 @@ char *roots_filename;
} }
} }
// TODO(mxyan): Use NSStringFromSelector(_cmd) to acquire test name from the
// test case method name, so that bodies of test cases can stay identical
- (void)testBadHostname { - (void)testBadHostname {
[self testIndividualCase:"bad_hostname"]; [self testIndividualCase:"bad_hostname"];
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment