Skip to content

Commit

Permalink
Update tests and cleanup pull request
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Kim Dung-Pham committed Sep 28, 2018
1 parent 38e62d1 commit c816e7d
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
1 change: 0 additions & 1 deletion mogenerator.m
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,6 @@ - (NSArray*)prettyFetchRequests {
}
return result;
}

@end

@implementation NSAttributeDescription (typing)
Expand Down
15 changes: 7 additions & 8 deletions test/Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -45,29 +45,28 @@ def gen_and_compile_swift(mogenPath, extra_mogen_args)
puts run_or_die './testbin'
end

def assert_entity_user_info_respected
# mogenerator.ignore
includes_uncle = Dir.entries('./MOs').any? { |file| file.include?('Uncle') }
raise 'Failed: Ignored entities should not be generated' if includes_uncle
end

desc 'Generate, Compile and Run Objective-C'
task :objc do
Rake::Task[:clean].execute
gen_and_compile_objc(MOGENERATOR_PATH, '', '')
assert_entity_user_info_respected
Rake::Task[:clean].execute
end

desc 'Generate, Compile and Run Swift'
task :swift do
Rake::Task[:clean].execute
gen_and_compile_swift(MOGENERATOR_PATH, '')
assert_entity_user_info_respected
Rake::Task[:clean].execute
end

desc 'Generate, Compile and test ignored entities'
task :objc do
Rake::Task[:clean].execute
gen_and_compile_objc(MOGENERATOR_PATH, '', '')
includes_uncle = Dir.entries('./MOs').any? { |file| file.include?('Uncle') }
raise 'Failed: Ignored entities should not be generated' if includes_uncle
Rake::Task[:clean].execute
end

desc 'Clean output'
task :clean do
Expand Down

0 comments on commit c816e7d

Please sign in to comment.